#include <cstdio>
using namespace std;

int main()
{
    int num;
    while (scanf(" %d", &num) != EOF) {
        int odd = 0, even = 0, temp;
        for (int i = 0; i < num; i++) {
            scanf(" %d", &temp);
            if (temp % 2 == 0)
                even++;
            else
                odd++;
        }
        if (even > odd)
            printf("NO\n");
        else
            printf("YES\n");
    }

    return 0;
}